from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
from api import *
urlpatterns = patterns('api',
    (r'^app/search/', 'cps.search.result'),
    (r'^app/compare/', 'cps.compare.clist'),
    (r'^app/product/(\d+)/', 'cps.product.pdetail'),
    (r'^app/product/list/', 'cps.product.plist'),
    (r'^app/home/', 'home.chain_home_api.chain_home_list'),
    (r'^app/category/', 'category.chain_category_api.chain_category_list'),
    (r'^app/app/', 'app.chain_app_api.chain_app_list'),
    (r'^app/company/', 'company.chain_company_api.chain_company_list'),
    (r'^app/comment/post/','comment.chain_commentpost_api.chain_commentpost_list'),
    (r'^app/comment/list/', 'comment.chain_commentlist_api.chain_commentlist_list'),    
    (r'^app/part/list/', 'part.chain_part_api.chain_part_list'),
    (r'^app/part/', 'part.chain_part_api.chain_part_detail'),
    (r'^app/user/register/', 'user.user_api.register'),
    (r'^app/user/login/', 'user.login_api.login'),
    (r'^app/activity/list/', 'activity.chain_activity_api.chain_activity_list'),
    (r'^app/activity/', 'activity.chain_activity_api.chain_activity_detail'),

)
